'''
Created on Feb 25, 2011
'''

from datetime import datetime

class RevisionHistory(object):
    '''
    This class is an entry or previous document which has been recorded for easier reverting. 
    Upon submitting a document, a RevisionHistory is created for the project
    '''
    
    def __init__(self,document,timeStamp):
        '''
        Constructor which also takes a document
        '''
        self.document=document
        self.timeStamp=timeStamp    
        
    def getDocument(self):
        return self.document
    
    def getTimeStamp(self):
        return self.timeStamp
    
    def update(self,document):
        self.document=document
        self.timeStamp=datetime.now()